From d47ec32b2ff86f32d9feae52e84d26d571896562 Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Tue, 31 May 2005 14:01:02 +0000 Subject: [PATCH] bitkeeper revision 1.1613 (429c6e1eexBYav7WpRxH77Hcyh4PLQ) XendDomainInfo.py: Should use int(cpu) here to test if it's valid. Signed-off-by: Christian Limpach --- tools/python/xen/xend/XendDomainInfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 8e118da4e8..4d05822e5d 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -555,7 +555,7 @@ class XendDomainInfo: if self.memory is None: raise VmError('missing memory size') cpu = sxp.child_value(config, 'cpu') - if self.recreate and self.dom and cpu is not None and cpu >= 0: + if self.recreate and self.dom and cpu is not None and int(cpu) >= 0: xc.domain_pincpu(self.dom, 0, 1<